package com.example.service.Impl;

import com.example.entity.dto.DeleteEmployeeDto;
import com.example.entity.dto.EmployeeDto;
import com.example.entity.dto.ProjectDto;
import com.example.entity.dto.Sub_ProjectsDto;
import com.example.mapper.EmployeeMapper;
import com.example.mapper.ProjectMapper;
import com.example.service.EmployeeService;
import com.example.service.ProjectService;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    public void AddEmployee(EmployeeDto employeeDto) {
        employeeMapper.AddEmployee(employeeDto);
    }
    public void DeleteEmployee(Integer Id) {
        employeeMapper.DeleteEmployee(Id);
    }
    public List<EmployeeDto> getEmployee(){
        return employeeMapper.getEmployee();
    }
    public void updateEmployee(EmployeeDto employeeDto) {
        employeeMapper.updateEmployee(employeeDto);
    }
}
